﻿using System;

namespace FlyweightPattern.IgoChessmanSample
{
    abstract class IgoChessman
    {
        public abstract string GetColor();

        public void Display()
        {
            Console.WriteLine($"棋子颜色：{this.GetColor()}");	
        }

        public void Display(Coordinates coord)
        {
            Console.WriteLine($"棋子颜色：{this.GetColor()}，棋子位置：{coord.X}，{coord.Y}");
        }
    }
}
